<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<%@include file="/WEB-INF/views/commons/common.jsp" %>
</head>
<body style="text-align: center;">
	<h1>注册账号</h1>
	<hr>
	<font color="red">${msg }</font>
	<form action="${pageContext.request.contextPath}/servlet/RegistServlet"
		method="POST">
		<table border="1">
			<tr>
				<td>用户名</td>
				<td><input type="text" name="username"
					value="${param.username }" /></td>
			</tr>
			<tr>
				<td>密码</td>
				<td><input type="password" name="password" /></td>
			</tr>
			<tr>
				<td>确认密码</td>
				<td><input type="password" name="password2" /></td>
			</tr>
			<tr>
				<td>邮箱</td>
				<td><input type="text" name="email" value="${param.email }" /></td>
			</tr>
			<tr>
				<td>手机</td>
				<td><input type="text" name="email" value="${param.email }" /></td>
			</tr>
			<tr>
				<td><input type="submit" value="注册" /></td>
				<td><img
					src="${pageContext.request.contextPath }/servlet/ValiImg"
					style="cursor: pointer" onclick="changeImg(this)" /></td>
			</tr>
		</table>
	</form>
</body>

<script type="text/javascript">
	function changeImg(img) {
		img.src = img.src + "?time=" + new Date().getTime();
	}
</script>
</html>
